package com.zxl.gtion.shiro;

import cn.binarywang.wx.miniapp.bean.WxMaUserInfo;
import com.zxl.gtion.pojo.WxLoginInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.shiro.authc.AuthenticationToken;

/**
 1. @Author: zh
 2. @Date: 2020/9/8 9:50
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WxMiniToken implements AuthenticationToken {
	private WxLoginInfo wxLoginInfo;

	@Override
	public Object getPrincipal() {
		return wxLoginInfo;
	}

	@Override
	public Object getCredentials() {
		return "ok";
	}
}
